{"ast":null,"code":"var __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nconst TimelineItem = _a => {\n  var {\n      prefixCls: customizePrefixCls,\n      className,\n      color = 'blue',\n      dot,\n      pending = false,\n      position /** Dead, but do not pass in <li {...omit()} */,\n      label,\n      children\n    } = _a,\n    restProps = __rest(_a, [\"prefixCls\", \"className\", \"color\", \"dot\", \"pending\", \"position\", \"label\", \"children\"]);\n  const {\n    getPrefixCls\n  } = React.useContext(ConfigContext);\n  const prefixCls = getPrefixCls('timeline', customizePrefixCls);\n  const itemClassName = classNames({\n    [`${prefixCls}-item`]: true,\n    [`${prefixCls}-item-pending`]: pending\n  }, className);\n  const dotClassName = classNames({\n    [`${prefixCls}-item-head`]: true,\n    [`${prefixCls}-item-head-custom`]: !!dot,\n    [`${prefixCls}-item-head-${color}`]: true\n  });\n  const customColor = /blue|red|green|gray/.test(color || '') ? undefined : color;\n  return /*#__PURE__*/React.createElement(\"li\", Object.assign({}, restProps, {\n    className: itemClassName\n  }), label && /*#__PURE__*/React.createElement(\"div\", {\n    className: `${prefixCls}-item-label`\n  }, label), /*#__PURE__*/React.createElement(\"div\", {\n    className: `${prefixCls}-item-tail`\n  }), /*#__PURE__*/React.createElement(\"div\", {\n    className: dotClassName,\n    style: {\n      borderColor: customColor,\n      color: customColor\n    }\n  }, dot), /*#__PURE__*/React.createElement(\"div\", {\n    className: `${prefixCls}-item-content`\n  }, children));\n};\nexport default TimelineItem;","map":{"version":3,"names":["__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","classNames","React","ConfigContext","TimelineItem","_a","prefixCls","customizePrefixCls","className","color","dot","pending","position","label","children","restProps","getPrefixCls","useContext","itemClassName","dotClassName","customColor","test","undefined","createElement","assign","style","borderColor"],"sources":["/data/messenger.client/node_modules/antd/es/timeline/TimelineItem.js"],"sourcesContent":["var __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nconst TimelineItem = _a => {\n  var {\n      prefixCls: customizePrefixCls,\n      className,\n      color = 'blue',\n      dot,\n      pending = false,\n      position /** Dead, but do not pass in <li {...omit()} */,\n      label,\n      children\n    } = _a,\n    restProps = __rest(_a, [\"prefixCls\", \"className\", \"color\", \"dot\", \"pending\", \"position\", \"label\", \"children\"]);\n  const {\n    getPrefixCls\n  } = React.useContext(ConfigContext);\n  const prefixCls = getPrefixCls('timeline', customizePrefixCls);\n  const itemClassName = classNames({\n    [`${prefixCls}-item`]: true,\n    [`${prefixCls}-item-pending`]: pending\n  }, className);\n  const dotClassName = classNames({\n    [`${prefixCls}-item-head`]: true,\n    [`${prefixCls}-item-head-custom`]: !!dot,\n    [`${prefixCls}-item-head-${color}`]: true\n  });\n  const customColor = /blue|red|green|gray/.test(color || '') ? undefined : color;\n  return /*#__PURE__*/React.createElement(\"li\", Object.assign({}, restProps, {\n    className: itemClassName\n  }), label && /*#__PURE__*/React.createElement(\"div\", {\n    className: `${prefixCls}-item-label`\n  }, label), /*#__PURE__*/React.createElement(\"div\", {\n    className: `${prefixCls}-item-tail`\n  }), /*#__PURE__*/React.createElement(\"div\", {\n    className: dotClassName,\n    style: {\n      borderColor: customColor,\n      color: customColor\n    }\n  }, dot), /*#__PURE__*/React.createElement(\"div\", {\n    className: `${prefixCls}-item-content`\n  }, children));\n};\nexport default TimelineItem;"],"mappings":"AAAA,IAAIA,MAAM,GAAG,IAAI,IAAI,IAAI,CAACA,MAAM,IAAI,UAAUC,CAAC,EAAEC,CAAC,EAAE;EAClD,IAAIC,CAAC,GAAG,CAAC,CAAC;EACV,KAAK,IAAIC,CAAC,IAAIH,CAAC,EAAE,IAAII,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAACP,CAAC,EAAEG,CAAC,CAAC,IAAIF,CAAC,CAACO,OAAO,CAACL,CAAC,CAAC,GAAG,CAAC,EAAED,CAAC,CAACC,CAAC,CAAC,GAAGH,CAAC,CAACG,CAAC,CAAC;EAChG,IAAIH,CAAC,IAAI,IAAI,IAAI,OAAOI,MAAM,CAACK,qBAAqB,KAAK,UAAU,EAAE,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEP,CAAC,GAAGC,MAAM,CAACK,qBAAqB,CAACT,CAAC,CAAC,EAAEU,CAAC,GAAGP,CAAC,CAACQ,MAAM,EAAED,CAAC,EAAE,EAAE;IAC3I,IAAIT,CAAC,CAACO,OAAO,CAACL,CAAC,CAACO,CAAC,CAAC,CAAC,GAAG,CAAC,IAAIN,MAAM,CAACC,SAAS,CAACO,oBAAoB,CAACL,IAAI,CAACP,CAAC,EAAEG,CAAC,CAACO,CAAC,CAAC,CAAC,EAAER,CAAC,CAACC,CAAC,CAACO,CAAC,CAAC,CAAC,GAAGV,CAAC,CAACG,CAAC,CAACO,CAAC,CAAC,CAAC;EACnG;EACA,OAAOR,CAAC;AACV,CAAC;AACD,OAAOW,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,aAAa,QAAQ,oBAAoB;AAClD,MAAMC,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